﻿namespace Infrastructure.Config.Core.EventBus
{
    public class EventBusConfig
    {
        public bool IsEnabled { get; set; }
        public string Server { get; set; }
        public string VHost { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public bool UseCluster { get; set; }
        public string Exchange { get; set; }
        public string QueueName { get; set; }
        public string ConnectionString { get; set; }
        public string Version { get; set; }
        public int FailedRetryCount { get; set; }
        public int? Port { get; set; } = 5672;
        public string SqlServerTableSchema { get; set; }
        public int? SucceedMessageExpiredAfter { get; set; }
        public int? QueueMessageExpires { get; set; }
        public string PathMatch { get; set; } = "cap";
        public int ConsumerNumber { get; set; } = 1;

        /// <summary>
        /// 使用自定义Trasnsport,支持cap-msg-exchange头
        /// </summary>
        public bool UseMarketTransport { get; set; }
    }
}
